home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
glass
/
glass.lha
/
GLASS
/
contsens
/
goodcsfout
< prev
next >
Wrap
Text File
|
1991-02-14
|
6KB
|
142 lines
[
(DefTyp ("counter.gl", 5) "B_0" (TypAtom "B_0")),
(DefVal ("counter.gl", 7) "jkff_1" (VType (TypUni (TypProd [(TypAtom "B_0"), (TypAtom "B_0")]) (TypProd [(TypAtom "B_0"), (TypAtom "B_0")])) (VAtom "jkff_1"))),
(DefVal ("counter.gl", 8) "and_2" (VType (TypUni (TypProd [(TypAtom "B_0"), (TypAtom "B_0")]) (TypAtom "B_0")) (VAtom "and_2"))),
(DefVal ("counter.gl", 9) "or_3" (VType (TypUni (TypProd [(TypAtom "B_0"), (TypAtom "B_0")]) (TypAtom "B_0")) (VAtom "or_3"))),
(DefVal ("counter.gl", 10) "buf_4" (VType (TypUni (TypAtom "B_0") (TypAtom "B_0")) (VAtom "buf_4"))),
(DefVal ("counter.gl", 11) "nand_5" (VType (TypUni (TypProd [(TypAtom "B_0"), (TypAtom "B_0")]) (TypAtom "B_0")) (VAtom "nand_5"))),
(
DefVal
("counter.gl", 14)
"counterstage_6"
(
VType
(TypUni (TypProd [(TypAtom "B_0"), (TypAtom "B_0"), (TypAtom "B_0"), (TypAtom "B_0")]) (TypProd [(TypAtom "B_0"), (TypAtom "B_0")]))
(
VSysLambda
(FpList [(FpName "d_17"), (FpName "preset_18"), (FpName "toggle_19"), (FpName "nclr_20")])
(
VWhere
[
(DefCon ("counter.gl", 18) (VSym ("counter.gl", 18) "ja_21") (VSysApply (VSym ("counter.gl", 18) "nand_5") (VList [(VSym ("counter.gl", 18) "ka_22"), (VSym ("counter.gl", 18) "preset_18")]))),
(DefCon ("counter.gl", 19) (VSym ("counter.gl", 19) "ka_22") (VSysApply (VSym ("counter.gl", 19) "nand_5") (VList [(VSym ("counter.gl", 19) "d_17"), (VSym ("counter.gl", 19) "nclr_20")]))),
(DefCon ("counter.gl", 20) (VSym ("counter.gl", 20) "ea_23") (VSysApply (VSym ("counter.gl", 20) "or_3") (VList [(VSym ("counter.gl", 20) "toggle_19"), (VSym ("counter.gl", 20) "preset_18")])))
]
(
VSysApply
(VSym ("counter.gl", 16) "jkff_1")
(
VList
[(VSysApply (VSym ("counter.gl", 16) "and_2") (VList [(VSym ("counter.gl", 16) "ja_21"), (VSym ("counter.gl", 16) "ea_23")])), (VSysApply (VSym ("counter.gl", 16) "and_2") (VList [(VSym ("counter.gl", 16) "ka_22"), (VSym ("counter.gl", 16) "ea_23")]))]
)
)
)
)
)
),
(
DefVal
("counter.gl", 23)
"mand_8"
(
VType
(TypFun (TypBind "n_7") (TypUni (TypPwr (TypAtom "B_0") (VSym ("counter.gl", 23) "n_7")) (TypAtom "B_0")))
(
VMacAlts
[
(VMacLambda (FpInt 2) (VSysLambda (FpName "eta_25") (VSysApply (VSym ("counter.gl", 24) "and_2") (VSym ("no_file", 0) "eta_25")))),
(
VMacLambda
(FpName "n_26")
(
VSysLambda
(FpComp (FpName "x_30") (FpName "xr_29"))
(VSysApply (VSym ("counter.gl", 25) "and_2") (VList [(VSym ("counter.gl", 25) "x_30"), (VSysApply (VValApply (VSym ("counter.gl", 25) "mand_8") (VBuiltin "-2" [(VSym ("counter.gl", 25) "n_26"), (VInt 1)])) (VSym ("counter.gl", 25) "xr_29"))]))
)
)
]
)
)
),
(
DefVal
("counter.gl", 28)
"countr_9"
(
VType
(TypUni (TypProd [(TypPwr (TypAtom "B_0") (VInt 4)), (TypAtom "B_0"), (TypAtom "B_0"), (TypAtom "B_0"), (TypAtom "B_0")]) (TypProd [(TypAtom "B_0"), (TypPwr (TypAtom "B_0") (VInt 4))]))
(
VSysLambda
(FpList [(FpList [(FpName "d3_51"), (FpName "d2_52"), (FpName "d1_53"), (FpName "d0_54")]), (FpName "nload_55"), (FpName "nclear_56"), (FpName "enap_57"), (FpName "enat_58")])
(
VWhere
[
(
DefCon
("counter.gl", 32)
(VSym ("counter.gl", 32) "carry_59")
(VSysApply (VValApply (VSym ("counter.gl", 32) "mand_8") (VInt 5)) (VList [(VSym ("counter.gl", 32) "q3_60"), (VSym ("counter.gl", 32) "q2_61"), (VSym ("counter.gl", 32) "q1_62"), (VSym ("counter.gl", 32) "q0_63"), (VSym ("counter.gl", 32) "enat_58")]))
),
(
DefCon
("counter.gl", 33)
(VList [(VSym ("counter.gl", 33) "q3_60"), (VSym ("counter.gl", 33) "q3'_64")])
(
VSysApply
(VSym ("counter.gl", 33) "counterstage_6")
(
VList
[
(VSym ("counter.gl", 33) "d3_51"),
(VSym ("counter.gl", 33) "preset_65"),
(VSysApply (VValApply (VSym ("counter.gl", 33) "mand_8") (VInt 4)) (VList [(VSym ("counter.gl", 33) "q2_61"), (VSym ("counter.gl", 33) "q1_62"), (VSym ("counter.gl", 33) "q0_63"), (VSym ("counter.gl", 33) "en_66")])),
(VSym ("counter.gl", 33) "nclr_67")
]
)
)
),
(
DefCon
("counter.gl", 34)
(VList [(VSym ("counter.gl", 34) "q2_61"), (VSym ("counter.gl", 34) "q2'_68")])
(
VSysApply
(VSym ("counter.gl", 34) "counterstage_6")
(
VList
[
(VSym ("counter.gl", 34) "d2_52"),
(VSym ("counter.gl", 34) "preset_65"),
(VSysApply (VValApply (VSym ("counter.gl", 34) "mand_8") (VInt 3)) (VList [(VSym ("counter.gl", 34) "q1_62"), (VSym ("counter.gl", 34) "q0_63"), (VSym ("counter.gl", 34) "en_66")])),
(VSym ("counter.gl", 34) "nclr_67")
]
)
)
),
(
DefCon
("counter.gl", 35)
(VList [(VSym ("counter.gl", 35) "q1_62"), (VSym ("counter.gl", 35) "q1'_69")])
(
VSysApply
(VSym ("counter.gl", 35) "counterstage_6")
(VList [(VSym ("counter.gl", 35) "d1_53"), (VSym ("counter.gl", 35) "preset_65"), (VSysApply (VSym ("counter.gl", 35) "and_2") (VList [(VSym ("counter.gl", 35) "q0_63"), (VSym ("counter.gl", 35) "en_66")])), (VSym ("counter.gl", 35) "nclr_67")])
)
),
(
DefCon
("counter.gl", 36)
(VList [(VSym ("counter.gl", 36) "q0_63"), (VSym ("counter.gl", 36) "q0'_70")])
(VSysApply (VSym ("counter.gl", 36) "counterstage_6") (VList [(VSym ("counter.gl", 36) "d0_54"), (VSym ("counter.gl", 36) "preset_65"), (VSym ("counter.gl", 36) "en_66"), (VSym ("counter.gl", 36) "nclr_67")]))
),
(DefCon ("counter.gl", 37) (VSym ("counter.gl", 37) "preset_65") (VSysApply (VSym ("counter.gl", 37) "nand_5") (VList [(VSym ("counter.gl", 37) "nload_55"), (VSym ("counter.gl", 37) "nclr_67")]))),
(DefCon ("counter.gl", 38) (VSym ("counter.gl", 38) "nclr_67") (VSysApply (VSym ("counter.gl", 38) "buf_4") (VSym ("counter.gl", 38) "nclear_56"))),
(DefCon ("counter.gl", 39) (VSym ("counter.gl", 39) "en_66") (VSysApply (VSym ("counter.gl", 39) "and_2") (VList [(VSym ("counter.gl", 39) "enap_57"), (VSym ("counter.gl", 39) "enat_58")])))
]
(VList [(VSym ("counter.gl", 30) "carry_59"), (VList [(VSym ("counter.gl", 30) "q3_60"), (VSym ("counter.gl", 30) "q2_61"), (VSym ("counter.gl", 30) "q1_62"), (VSym ("counter.gl", 30) "q0_63")])])
)
)
)
)
]